package com.itheima_09;

public class Demo {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.setAge(30);
        teacher.setName("wx");
        System.out.println(teacher.getName() + "," + teacher.getAge());
        teacher.teach();

        Teacher teacher2 = new Teacher("aa", 30);
        System.out.println(teacher2.getName() + "," + teacher2.getAge());
        teacher2.teach();
    }
}
